package com.lhy.order.feign;

import com.lhy.order.vo.VaccineOrderVo;
import com.lhy.vaccine_common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("vaccine-stock")
public interface VaccineStockFeign {

    @PostMapping("/stock/vaccineStock/getVaccineId")
     R getVaccineId(@RequestBody VaccineOrderVo vaccineOrderVo);

    @GetMapping("/stock/vaccineStock/getCityById")
    R getCityById(@RequestParam("cityId") String cityId);

    @GetMapping("/stock/vaccineStock/getVaccineById")
    R getVaccineById(@RequestParam("vaccineId")Integer vaccineId);

    @GetMapping("/stock/vaccineStock/getVaccineByName")
    R getVaccineByName(@RequestParam("vname")String vaccineName);
}
